package Demo5.controller;

import Demo5.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {
    @Autowired
    private IUserService userService;
    public void doLogin(){

        System.out.println("收到用户请求，要求登录");
        boolean sucess=userService.login("李四","123456");
        if(sucess){
            System.out.println("UserController:用户登录成功");
        }else {
            System.out.println("UserController:用户登录失败");

        }
    }
}
